Edit Task: SetPossibility TimesExact
Description
The SetPossibility TimesExact attribute under EditTask allows you to override and explicitly set the possibility's list of final timeslots. This command argument ignores the Scheduling Windows, Resource Availability Windows, and Report Windows that are usually used to determine the final set of a possibilities timeslot.
Parameters
Parameter | Description |
---|---|
PossibilityName | A comma delimited list of resources in the possibility surrounded by single quotes. Order is not required and this command will delete previously existing times. |
Start | Represents the start time for a possibility report time. This time should be space delimited and in the same format as the times used in the Time Import Files. The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
Stop | Represents the stop time for a possibility report time. This time should be space delimited and in the same format as the times used in the Time Import Files. The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
Desirability | Optional score to use for the timeslot. If not specified the timeslot will use a desirability score halfway between the minimum and maximum allowed. |
Examples
Set 2 new timeslots for the ResA possibility.
PATCH api/task/TaskA
Body:
{
"SetPossibility" : [{
"PossibilityName" : "ResA",
"TimesExact" : [{
"Start" : "2015/01/01_03:00:00",
"Stop" : "2015/01/01_03:45:00",
"Desirability" : "85"
},
{
"Start" : "2015/01/01_04:00:00",
"Stop" : "2015/01/01_04:45:00"
}]
}]
}